package com.mrjy.maintain.controller;

import com.mrjy.common.entity.GloryInfo;
import com.mrjy.maintain.bo.IGloryInfoBo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/maintain/gloryInfo")
public class GloryInfoController {
    @Resource
    private IGloryInfoBo gloryInfoBo;


    /**
     * @return
     */
    @RequestMapping("/insert")
    @ResponseBody
    public Object insert(GloryInfo info) {
        return gloryInfoBo.txInsert(info);
    }


    /**
     * @return
     */
    @RequestMapping("/deleteByIds")
    @ResponseBody
    public Object deleteByIds(int[] ids) {
        return gloryInfoBo.txDeleteByIds(ids);
    }

    /**
     * @return
     */
    @RequestMapping("/updateById")
    @ResponseBody
    public Object updateById(GloryInfo info) {
        return gloryInfoBo.txUpdateById(info);
    }

    /**
     * @return
     */
    @RequestMapping("/updateDisableFlag")
    @ResponseBody
    public Object updateDisableFlag(GloryInfo info) {
        return gloryInfoBo.txUpdateDisableFlag(info);
    }

}
